Пример #1
0
 def test_applicable_for_application_context_when_context_is_specified(
         self):
     command = CommandId('command',
                         'desc',
                         None, [],
                         application_contexts=ApplicationContext.STANDALONE)
     self.assertTrue(
         command.is_applicable_for_application(
             ApplicationContext.STANDALONE))
Пример #2
0
 def test_not_applicable_for_application_context_that_is_not_specified(
         self):
     command = CommandId('command',
                         'desc',
                         None, [],
                         application_contexts=ApplicationContext.EXTENDABLE)
     self.assertFalse(
         command.is_applicable_for_application(
             ApplicationContext.STANDALONE))