예제 #1
0
    def _cascading_types_helper(self, enum1, enum2):
        ctypes = CascadingTypes()
        ctypes.comp_insttype = enum1
        ctypes.comp_nicinsttype = enum2
        self.crud.create(self.ncc, ctypes)

        # Read into Runner1
        ctypesRead = CascadingTypes()
        ctypesRead = self.crud.read(self.ncc, ctypesRead)

        # Compare runners
        self.assertEqual(ctypes, ctypesRead)
예제 #2
0
    def _cascading_types_helper(self, enum1, enum2):
        ctypes = CascadingTypes()
        ctypes.comp_insttype = enum1
        ctypes.comp_nicinsttype = enum2
        self.crud.create(self.ncc, ctypes)

        # Read into Runner1
        ctypesRead = CascadingTypes()
        ctypesRead = self.crud.read(self.ncc, ctypesRead)

        # Compare runners
        self.assertEqual(ctypes, ctypesRead)
예제 #3
0
    def tearDown(self):
        runner = Runner()
        self.crud.delete(self.ncc, runner)

        ctypes = CascadingTypes()
        self.crud.delete(self.ncc, ctypes)