def test_build_data_dict_with_blank_data(self): test_data = '' return_expected = {} returned_data = Requester._Requester__build_data_dict( Requester, test_data) self.assertIsInstance(returned_data, dict) self.assertEqual(returned_data, return_expected)
def test_build_data_dict_with_key_and_value(self): test_data = 'test=1' return_expected = {FuzzWord('test'): FuzzWord('1')} returned_data = Requester._Requester__build_data_dict( Requester, test_data) self.assertIsInstance(returned_data, dict) self.assertEqual(len(returned_data), 1) self.assertIsInstance(returned_data['test'], FuzzWord) self.assertDictEqual(returned_data, return_expected)