def test_large_odd(self): ''' Test two valid number inputs ''' result = fc.flowchart(117) self.assertEqual(result, 'large-odd')
def test_medium_odd(self): ''' Test medium odd ''' result = fc.flowchart(75) self.assertEqual(result, 'medium-odd')
def test_large_even(self): ''' Test two valid number inputs ''' result = fc.flowchart(110) self.assertEqual(result, 'large-even')
def test_small_odd(self): ''' Test small odd ''' result = fc.flowchart(15) self.assertEqual(result, 'small-odd')
def test_medium_even(self): ''' Test medium even ''' result = fc.flowchart(60) self.assertEqual(result, 'medium-even')
def test_small_even(self): ''' Test small even ''' result = fc.flowchart(10) self.assertEqual(result, 'small-even')
def test_medium_odd(self): ''' Test a mix ''' result = fc.flowchart([5, 9, 4, 1, 14]) self.assertEqual(result, [0, 3, 2, 0, 2])
def test_neither(self): ''' Test not divisible by 3 or 2 ''' result = fc.flowchart([5, 7, 1]) self.assertEqual(result, [0, 0, 0])
def test_twos(self): ''' Test divisible by 2 ''' result = fc.flowchart([4, 8, 10, 2]) self.assertEqual(result, [2, 2, 2, 2])
def test_threes(self): ''' Test divisible by 3 ''' result = fc.flowchart([6, 9, 3, 12]) self.assertEqual(result, [3, 3, 3, 3])