'Check that complex numbers can be encoded into JSON.'

def test_default(self):

    complex_num = (1 - 1j)
    expected_str = '1-1*j'
    json_str = json.dumps(complex_num, cls=ComplexEncoder)
    self.assertEqual(expected_str, json_str[1:(-1)])
