def test_munge_dict_empty_value(self):
     api = API()
     row = {"key": ""}
     new_row = api._munge_dict(row)
     self.assertIsNone(new_row["key"])
 def test_munge_dict_float_value(self):
     api = API()
     row = {"key": "66.6"}
     new_row = api._munge_dict(row)
     self.assertAlmostEqual(new_row["key"], 66.6)
 def test_munge_dict_text_value(self):
     api = API()
     row = {"key": "value"}
     new_row = api._munge_dict(row)
     self.assertEqual(new_row["key"], "value")
 def test_munge_dict_int_value(self):
     api = API()
     row = {"key": "666"}
     new_row = api._munge_dict(row)
     self.assertEqual(new_row["key"], 666)
Example #5
0
 def test_munge_dict_empty_value(self):
     api = API()
     row = {"key": ""}
     new_row = api._munge_dict(row)
     self.assertIsNone(new_row["key"])
Example #6
0
 def test_munge_dict_text_value(self):
     api = API()
     row = {"key": "value"}
     new_row = api._munge_dict(row)
     self.assertEqual(new_row["key"], "value")
Example #7
0
 def test_munge_dict_float_value(self):
     api = API()
     row = {"key": "66.6"}
     new_row = api._munge_dict(row)
     self.assertAlmostEqual(new_row["key"], 66.6)
Example #8
0
 def test_munge_dict_int_value(self):
     api = API()
     row = {"key": "666"}
     new_row = api._munge_dict(row)
     self.assertEqual(new_row["key"], 666)