예제 #1
0
def main():
    while True:
        print(line())
        if os_release() == '7':
            pass
        else:
            check_new_ver()
        send = xinput(c.BLUE + ">" + c.GREEN + ">" + c.RED + "> " + c.CYAN)
        if send == 'c':
            if_c()
        elif send == 'e':
            if_e()
        elif send == 'z':
            if_z()
        elif send == '1':
            if_1()
        elif send == '2':
            if_2()
        elif send == '3':
            if_3()
        elif send == '4':
            if_4()
        elif send == '5':
            if_5()
        else:
            if_else()
예제 #2
0
 def test_even_between_2_and_5(self):
     self.assertEqual(if_else(2), 'Not Weird')
예제 #3
0
 def test_odd(self):
     self.assertEqual(if_else(3), 'Weird')
예제 #4
0
 def test_even_greater_20(self):
     self.assertEqual(if_else(22), 'Not Weird')
예제 #5
0
 def test_not_even_greater_20(self):
     self.assertEqual(if_else(21), 'Weird')
예제 #6
0
 def test_even_between_6_and_20__20(self):
     self.assertEqual(if_else(20), 'Weird')
예제 #7
0
 def test_not_even_between_2_and_5(self):
     self.assertEqual(if_else(5), 'Weird')