Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #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))