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)
Ejemplo n.º 5
0
 def test_munge_dict_empty_value(self):
     api = API()
     row = {"key": ""}
     new_row = api._munge_dict(row)
     self.assertIsNone(new_row["key"])
Ejemplo n.º 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")
Ejemplo n.º 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)
Ejemplo n.º 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)