defcalculate(self)
returnself.n> 0b10
import codewars_test as test
import random
test.describe("Random test cases")
class IsMoreThanTwo: def __init__(self, n): self.n = n def calculate(self): return self.n > 0b10
import codewars_test as test import random from solution import IsMoreThanTwo @test.describe("Random test cases") def random_tests(): @test.it("Random test") def test_case(): for x in range(100): sample = random.randint(-1000, 1000) test.assert_equals(IsMoreThanTwo(sample).calculate(), sample > 2)