示例#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))
示例#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))
示例#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))
示例#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))
示例#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))
示例#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))
示例#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))
示例#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))