def METHOD_NAME(self):
    sub_scope = "/subscriptions/111-111-1111"
    resource_group_scope = sub_scope + "/resourceGroups/foo"
    management_group_scope = "/providers/Microsoft.Management/managementGroups/foo"
    scope_filter = ScopeFilter(MagicMock())
    sub_type = 'subscription'
    self.assertTrue(scope_filter.is_scope(sub_scope, sub_type))
    self.assertFalse(scope_filter.is_scope(resource_group_scope, sub_type))
    self.assertFalse(scope_filter.is_scope(management_group_scope, sub_type))
    self.assertFalse(scope_filter.is_scope("subscriptions", sub_type))
    self.assertFalse(scope_filter.is_scope("/subscription", sub_type))
    self.assertFalse(scope_filter.is_scope("/foo/bar", sub_type))