예제 #1
0
    def test_unknown_zodiac(self, mocker):
        class FakeZodiac():
            def date_includes(self, *args, **kwargs):
                return False

        mocker.patch('csuibot.utils.z.Scorpio', return_value=FakeZodiac())

        res = utils.lookup_zodiac(11, 17)

        assert res == 'Unknown zodiac'
예제 #2
0
 def test_aquarius_upper_bound(self):
     res = utils.lookup_zodiac(2, 18)
     assert res == 'aquarius'
예제 #3
0
 def test_virgo_in_between(self):
     res = utils.lookup_zodiac(9, 9)
     assert res == 'virgo'
예제 #4
0
 def test_virgo_upper_bound(self):
     res = utils.lookup_zodiac(9, 22)
     assert res == 'virgo'
예제 #5
0
 def test_not_leo(self):
     res = utils.lookup_zodiac(11, 17)
     assert res != 'leo'
예제 #6
0
 def test_leo_upper_bound(self):
     res = utils.lookup_zodiac(8, 22)
     assert res == 'leo'
예제 #7
0
 def test_not_cancer(self):
     res = utils.lookup_zodiac(11, 17)
     assert res != 'cancer'
예제 #8
0
 def test_cancer_upper_bound(self):
     res = utils.lookup_zodiac(7, 22)
     assert res == 'cancer'
예제 #9
0
 def test_not_pisces(self):
     res = utils.lookup_zodiac(11, 17)
     assert res != 'pisces'
예제 #10
0
 def test_pisces_upper_bound(self):
     res = utils.lookup_zodiac(3, 20)
     assert res == 'pisces'
예제 #11
0
 def test_pisces_in_between(self):
     res = utils.lookup_zodiac(3, 3)
     assert res == 'pisces'
예제 #12
0
 def test_pisces_lower_bound(self):
     res = utils.lookup_zodiac(2, 19)
     assert res == 'pisces'
예제 #13
0
 def test_not_aquarius(self):
     res = utils.lookup_zodiac(11, 17)
     assert res != 'aquarius'
예제 #14
0
 def test_aquarius_in_between(self):
     res = utils.lookup_zodiac(2, 2)
     assert res == 'aquarius'
예제 #15
0
 def test_aries_lower_bound(self):
     res = utils.lookup_zodiac(3, 21)
     assert res == 'aries'
예제 #16
0
 def test_taurus_upper_bound(self):
     res = utils.lookup_zodiac(5, 20)
     assert res == 'taurus'
예제 #17
0
 def test_cancer_lower_bound(self):
     res = utils.lookup_zodiac(6, 21)
     assert res == 'cancer'
예제 #18
0
 def test_taurus_in_between(self):
     res = utils.lookup_zodiac(4, 30)
     assert res == 'taurus'
예제 #19
0
 def test_cancer_in_between(self):
     res = utils.lookup_zodiac(7, 7)
     assert res == 'cancer'
예제 #20
0
 def test_not_taurus(self):
     res = utils.lookup_zodiac(11, 17)
     assert res != 'taurus'
예제 #21
0
 def test_leo_lower_bound(self):
     res = utils.lookup_zodiac(7, 23)
     assert res == 'leo'
예제 #22
0
 def test_gemini_lower_bound(self):
     res = utils.lookup_zodiac(5, 21)
     assert res == 'gemini'
예제 #23
0
 def test_leo_in_between(self):
     res = utils.lookup_zodiac(8, 8)
     assert res == 'leo'
예제 #24
0
 def test_gemini_upper_bound(self):
     res = utils.lookup_zodiac(6, 20)
     assert res == 'gemini'
예제 #25
0
 def test_virgo_lower_bound(self):
     res = utils.lookup_zodiac(8, 23)
     assert res == 'virgo'
예제 #26
0
 def test_gemini_in_between(self):
     res = utils.lookup_zodiac(6, 6)
     assert res == 'gemini'
예제 #27
0
 def test_aries_upper_bound(self):
     res = utils.lookup_zodiac(4, 19)
     assert res == 'aries'
예제 #28
0
 def test_not_gemini(self):
     res = utils.lookup_zodiac(11, 17)
     assert res != 'gemini'
예제 #29
0
 def test_not_virgo(self):
     res = utils.lookup_zodiac(11, 17)
     assert res != 'virgo'
예제 #30
0
 def test_aquarius_lower_bound(self):
     res = utils.lookup_zodiac(1, 20)
     assert res == 'aquarius'