Пример #1
0
 def test_empty_sub_ranges(self):
     sub_ranges = [
         'MS+',
         None,
         'BS+'
     ]
     pf_range = PostflopRange("With None", sub_ranges)
     self.assertEqual(pf_range.r_3, 'BS+')
     self.assertEqual(pf_range.r_2, None)
     pf_range.check_sub_ranges()
     self.assertEqual(pf_range.has_error, False)
Пример #2
0
 def test_check_sub_ranges(self):
     sub_ranges = [
         'MS+',
         '2PH+'
     ]
     pf_range = PostflopRange("Wrong", sub_ranges)
     self.assertEqual(pf_range.has_error, False)
     pf_range.check_sub_ranges(print_error=False)
     self.assertEqual(pf_range.has_error, True)
     self.assertEqual(pf_range._errors[0], None)
     self.assertEqual(pf_range._errors[1].easy_range, "2PH+")
     self.assertEqual(pf_range._errors[1].column, 3)