Esempio n. 1
0
class TestDay(unittest.TestCase):

    def setUp(self):
        self.day = Day("someURL", "somename")
    
    @raises(AttributeError)
    def test_URL_can_not_change(self):
        self.day.URL = "someotherURL"
        
    @raises(AttributeError)
    def test_name_can_not_change(self):
        self.day.name = "someothername"
        
    @raises(NotImplementedError)
    def test_is_it_this_day_raises_NotImplemented(self):
        self.day.is_today(datetime.now())
Esempio n. 2
0
 def setUp(self):
     self.day = Day("someURL", "somename")