def test_as_json(self): entity = SirenEntity(['blah'], []) json_string = entity.as_json() self.assertIsInstance(json_string, six.string_types)