def test_failed(self): """Assert correct return value with the failed state.""" self.assertEqual(util.composestate2html(None, ComposeState.failed), "<span class='label label-danger'>Failed</span>")
def test_notifying(self): """Assert correct return value with the notifying state.""" self.assertEqual( util.composestate2html(None, ComposeState.notifying), "<span class='label label-warning'>Sending notifications</span>")
def test_success(self): """Assert correct return value with the success state.""" self.assertEqual(util.composestate2html(None, ComposeState.success), "<span class='label label-success'>Success</span>")
def test_punging(self): """Assert correct return value with the punging state.""" self.assertEqual( util.composestate2html(None, ComposeState.punging), "<span class='label label-warning'>Waiting for Pungi to finish</span>" )
def test_updateinfo(self): """Assert correct return value with the updateinfo state.""" self.assertEqual( util.composestate2html(None, ComposeState.updateinfo), "<span class='label label-warning'>Generating updateinfo.xml</span>" )
def test_initializing(self): """Assert correct return value with the initializing state.""" self.assertEqual( util.composestate2html(None, ComposeState.initializing), "<span class='label label-warning'>Initializing</span>")
def test_pending(self): """Assert correct return value with the pending state.""" self.assertEqual(util.composestate2html(None, ComposeState.pending), "<span class='label label-primary'>Pending</span>")
def test_requested(self): """Assert correct return value with the requested state.""" self.assertEqual(util.composestate2html(None, ComposeState.requested), "<span class='label label-primary'>Requested</span>")