def test_flatten_dict_weird_cases(self, dictionary):
     """The dictionary, when weird, raises an error."""
     with self.assertRaises(NotImplementedError):
         utils.flatten_dict(dictionary)
 def test_flatten_dict(self, target, dictionary, flattened):
     """The dictionary, regardless of how complex, has its keys flattened."""
     assert utils.flatten_dict(dictionary, target=target) == flattened