Skip to content

Instantly share code, notes, and snippets.

@muhammad-ammar
Created August 27, 2014 20:29
Show Gist options
  • Save muhammad-ammar/833ee7b0ea93a84c1ec2 to your computer and use it in GitHub Desktop.
Save muhammad-ammar/833ee7b0ea93a84c1ec2 to your computer and use it in GitHub Desktop.
import sys
import unittest
from nose.plugins.attrib import attr
@attr('shard_1')
class FirstTest(unittest.TestCase):
def test_f11(self):
print >> sys.stderr, 'test_f11'
def test_f12(self):
print >> sys.stderr, 'test_f12'
class SecondTest(unittest.TestCase):
def test_f21(self):
print >> sys.stderr, 'test_f21'
def test_f22(self):
print >> sys.stderr, 'test_f22'
@attr('shard_2')
class ThirdTest(unittest.TestCase):
def test_f31(self):
print >> sys.stderr, 'test_f31'
def test_f32(self):
print >> sys.stderr, 'test_f32'
class FourthTest(unittest.TestCase):
def test_f41(self):
print >> sys.stderr, 'test_f41'
def test_f42(self):
print >> sys.stderr, 'test_f42'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment