Exemplo n.º 1
0
 def test_find_with_unsupport_compare_method(self):
   "FET: parse with mid, which is not supported"
   self.assertEqual(None, module.find("mid", self.test_feed_tuple))
Exemplo n.º 2
0
 def test_find_str_min(self):
   "FAST: parse str and return min character"
   self.assertEqual('a', module.find("min", self.test_feed_string))
Exemplo n.º 3
0
 def test_find_with_unsupport_datatype(self):
   "FET: parse tuple, which is not supported"
   self.assertEqual(None, module.find("min", self.test_feed_tuple))
Exemplo n.º 4
0
 def test_find_str_max(self):
   "FAST: parse str and return max character"
   self.assertEqual('s', module.find("max", self.test_feed_string))
Exemplo n.º 5
0
 def test_find_dict_min(self):
   "FAST: parse dict and return key, value for min key"
   self.assertEqual((1, 'one'), module.find("min", self.test_feed_dict))
Exemplo n.º 6
0
 def test_find_dict_max(self):
   "FAST: parse dict and return key, value for max key"
   self.assertEqual((6, 'six'), module.find("max", self.test_feed_dict))
Exemplo n.º 7
0
 def test_find_list_min(self):
   "FAST: parse list and return min element"
   self.assertEqual(1, module.find("min", self.test_feed_list))
Exemplo n.º 8
0
 def test_find_list_max(self):
   "FAST: parse list and return max elemtnt"
   self.assertEqual(6, module.find("max", self.test_feed_list))