Beispiel #1
0
 def test_same(self):
     # name is the same, so not new
     current_brand = entbranding.Brand()
     current_brand.name = "Awesome OS"
     product_brand = entbranding.Brand()
     product_brand.name = "Awesome OS"
     self.assertFalse(current_brand.is_outdated_by(product_brand))
Beispiel #2
0
 def test_product_brand_none(self):
     # new name is None, so newer consumer > current
     current_brand = entbranding.Brand()
     current_brand.name = "Awesome OS"
     product_brand = entbranding.Brand()
     product_brand.name = None
     self.assertFalse(current_brand.is_outdated_by(product_brand))
Beispiel #3
0
    def test_product_name_ne_current_name(self):
        # a new branded name
        current_brand = entbranding.Brand()
        current_brand.name = "Awesome OS"
        product_brand = entbranding.Brand()
        product_brand.name = "New Awesome OS"

        self.assertTrue(current_brand.is_outdated_by(product_brand))
Beispiel #4
0
 def test_no_current_name(self):
     # if old name doesnt exist, new name is newer
     current_brand = entbranding.Brand()
     product_brand = entbranding.Brand()
     product_brand.name = "Awesome OS"
     self.assertTrue(current_brand.is_outdated_by(product_brand))
Beispiel #5
0
 def test_no_no(self):
     current_brand = entbranding.Brand()
     product_brand = entbranding.Brand()
     # current brand and product none/unset
     self.assertTrue(current_brand.is_outdated_by(product_brand))