Skip to content

Instantly share code, notes, and snippets.

@tychoish
Created August 3, 2013 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tychoish/6148366 to your computer and use it in GitHub Desktop.
Save tychoish/6148366 to your computer and use it in GitHub Desktop.
from unittest import TestCase
from core import ApplicationStage, ApplicationStageAlternate
class StagesBuildStepMultiAddTests(object):
def test_valid_test_harness(self):
self.assertEqual( self.jobs[0][1], 42 )
class TestStagesBuildStageMultiAdd(StagesBuildStepMultiAddTests, TestCase):
@classmethod
def setUp(self):
self.jobs = [ (func, (1, 2)), (func, ('str', 'str')) ]
self.s = ApplicationStage()
class TestStagesBuildStageSingleAdd(StagesBuildStepMultiAddTests, TestCase):
@classmethod
def setUp(self):
self.jobs = [ (func, (1, 2)), (func, ('str', 'str')) ]
self.s = ApplicationStageAlternate(True, False, None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment