Exemplo n.º 1
0
 def test_float(self):
     expected = 5.321
     self.assertEqual(expected, write_utils.clean_string_att(expected))
Exemplo n.º 2
0
 def test_num_array(self):
     expected = [1, 2, 3.456]
     self.assertEqual(expected, write_utils.clean_string_att(expected))
Exemplo n.º 3
0
 def test_str_tuple(self):
     expected = ('a', 'bc', 'def')
     returned = write_utils.clean_string_att(expected)
     expected = np.array(expected, dtype='S')
     for exp, act in zip(expected, returned):
         self.assertEqual(exp, act)
Exemplo n.º 4
0
 def test_str(self):
     expected = 'test'
     self.assertEqual(expected, write_utils.clean_string_att(expected))