Exemplo n.º 1
0
 def test_figure_title_with_empty_list_raises_assertion(self):
     with self.assertRaises(AssertionError):
         figure_title([], 5)
Exemplo n.º 2
0
 def test_figure_title_with_single_workspace(self):
     self.assertEqual("fake-5", figure_title(FakeWorkspace("fake"), 5))
Exemplo n.º 3
0
 def test_figure_title_with_workspace_list(self):
     self.assertEqual(
         "fake-10",
         figure_title((FakeWorkspace("fake"), FakeWorkspace("nextfake")),
                      10))
Exemplo n.º 4
0
 def test_figure_title_with_single_string(self):
     self.assertEqual("test-1", figure_title("test", 1))
Exemplo n.º 5
0
 def test_figure_title_with_list_of_strings(self):
     self.assertEqual("first-10", figure_title(["first", "second"], 10))
Exemplo n.º 6
0
 def test_figure_title_with_empty_list_raises_assertion(self):
     with self.assertRaises(AssertionError):
         figure_title([], 5)
Exemplo n.º 7
0
 def test_figure_title_with_workspace_list(self):
     self.assertEqual("fake-10", figure_title((FakeWorkspace("fake"),
                                               FakeWorkspace("nextfake")), 10))
Exemplo n.º 8
0
 def test_figure_title_with_single_workspace(self):
     self.assertEqual("fake-5", figure_title(FakeWorkspace("fake"), 5))
Exemplo n.º 9
0
 def test_figure_title_with_list_of_strings(self):
     self.assertEqual("first-10", figure_title(["first", "second"], 10))
Exemplo n.º 10
0
 def test_figure_title_with_single_string(self):
     self.assertEqual("test-1", figure_title("test", 1))