コード例 #1
0
 def test_BugCommandGroup_add_bug_non_empty_group(self):
     # Non-empty BugCommandGroups are added.
     group = BugCommandGroups([])
     bug_group = BugCommandGroup(BugEmailCommands.get('private', ['true']))
     group.add(bug_group)
     self.assertEqual([], group._commands)
     self.assertEqual([bug_group], group._groups)
コード例 #2
0
 def test_BugCommandGroups_add_bug_empty_group(self):
     # Empty BugCommandGroups are ignored.
     group = BugCommandGroups([])
     group.add(
         BugCommandGroup())
     self.assertEqual([], group._commands)
     self.assertEqual([], group._groups)
コード例 #3
0
 def test_BugCommandGroups_add_bug_email_command(self):
     # BugEmailCommands are ignored.
     group = BugCommandGroups([])
     group.add(
         BugEmailCommands.get('private', ['true']))
     self.assertEqual([], group._commands)
     self.assertEqual([], group._groups)
コード例 #4
0
 def test_BugCommandGroup_add_bug_non_empty_group(self):
     # Non-empty BugCommandGroups are added.
     group = BugCommandGroups([])
     bug_group = BugCommandGroup(
         BugEmailCommands.get('private', ['true']))
     group.add(bug_group)
     self.assertEqual([], group._commands)
     self.assertEqual([bug_group], group._groups)