def test_non_string_keys_dict(self):
    data = {'a': 1, (1, 2): 2}
    self.assertRaises(TypeError, self.dumps, data)
    self.assertRaises(TypeError, self.dumps, data, indent=True)
def test_non_string_keys_dict(self):
    data = {'a': 1, (1, 2): 2}
    self.assertRaises(TypeError, self.dumps, data)
    self.assertRaises(TypeError, self.dumps, data, indent=True)