def test_starter_set(self):
     user = self.factory.makePerson()
     blueprint = self.factory.makeBlueprint(owner=user)
     when = datetime(2011, 1, 1, tzinfo=pytz.UTC)
     with person_logged_in(user):
         blueprint.setImplementationStatus(
             SpecificationImplementationStatus.STARTED, user)
     removeSecurityProxy(blueprint).date_started = when
     repr_method = specification.starter_xhtml_representation(
         blueprint, ISpecification['starter'], None)
     expected = format_link(user) + ' on 2011-01-01'
     self.assertThat(repr_method(), Equals(expected))
 def test_starter_set(self):
     user = self.factory.makePerson()
     blueprint = self.factory.makeBlueprint(owner=user)
     when = datetime(2011, 1, 1, tzinfo=pytz.UTC)
     with person_logged_in(user):
         blueprint.setImplementationStatus(
             SpecificationImplementationStatus.STARTED, user)
     removeSecurityProxy(blueprint).date_started = when
     repr_method = specification.starter_xhtml_representation(
         blueprint, ISpecification['starter'], None)
     expected = format_link(user) + ' on 2011-01-01'
     self.assertThat(repr_method(), Equals(expected))
 def test_starter_empty(self):
     blueprint = self.factory.makeBlueprint()
     repr_method = specification.starter_xhtml_representation(
         blueprint, ISpecification['starter'], None)
     self.assertThat(repr_method(), Equals(''))
 def test_starter_empty(self):
     blueprint = self.factory.makeBlueprint()
     repr_method = specification.starter_xhtml_representation(
         blueprint, ISpecification['starter'], None)
     self.assertThat(repr_method(), Equals(''))