Exemple #1
0
 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>")
Exemple #2
0
 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>")
Exemple #3
0
 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>")
Exemple #4
0
 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>"
     )
Exemple #5
0
 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>"
     )
Exemple #6
0
 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>")
Exemple #7
0
 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>")
Exemple #8
0
 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>")