Exemplo n.º 1
0
 def test_division_five_and_three(self):
     exp = 'FizzBuzz'
     result = muuntaja.fizzbuzz(15)
     self.assertEqual(result, exp)
Exemplo n.º 2
0
 def test_for_float(self):
     with self.assertRaises(ValueError):
         muuntaja.fizzbuzz(1.5)
Exemplo n.º 3
0
 def test_for_negative(self):
     with self.assertRaises(ValueError):
         muuntaja.fizzbuzz(-4)
Exemplo n.º 4
0
 def test_for_letter(self):
     with self.assertRaises(TypeError):
         muuntaja.fizzbuzz('b')
Exemplo n.º 5
0
 def test_division_three(self):
     exp = 'Buzz'
     result = muuntaja.fizzbuzz(3)
     self.assertEqual(result, exp)