예제 #1
0
def GetRequiredNamespaceImport_ReturnNamespaceFromExtraData_test():
    namespace = 'A_NAMESPACE'
    eq_(_GetRequiredNamespaceImport(BuildCompletionNamespace(namespace)),
        namespace)
예제 #2
0
def GetRequiredNamespaceImport_ReturnNoneForNoExtraData_test():
    eq_(_GetRequiredNamespaceImport({}), None)
예제 #3
0
def GetRequiredNamespaceImport_ReturnNamespaceFromExtraData_test():
  namespace = 'A_NAMESPACE'
  eq_( _GetRequiredNamespaceImport( BuildCompletionNamespace( namespace ) ),
       namespace )
예제 #4
0
def GetRequiredNamespaceImport_ReturnNoneForNoExtraData_test():
  eq_( _GetRequiredNamespaceImport( {} ), None )
예제 #5
0
 def test_GetRequiredNamespaceImport_ReturnNamespaceFromExtraData(self):
     namespace = 'A_NAMESPACE'
     assert_that(
         _GetRequiredNamespaceImport(
             BuildCompletionNamespace(namespace)['extra_data']),
         equal_to(namespace))
예제 #6
0
 def test_GetRequiredNamespaceImport_ReturnNoneForNoExtraData(self):
     assert_that(_GetRequiredNamespaceImport({}), none())