Exemplo n.º 1
0
 def test_instantiate(self):
     self.instance = LicenseHeader(self.fake_template).instantiate()
     for token, value in LicenseHeader.create_replacement_rules().items():
         self.assert_string_does_not_contain(self.instance, token)
         self.assert_string_contains(self.instance, value)
Exemplo n.º 2
0
 def test_create_replacement_rules(self):
     self.assert_equals({"year_": str(datetime.now().year)},
                        LicenseHeader.create_replacement_rules())