Add written_in_demo dir

parent dbb3cc15
from nose.tools import assert_equal
from nose.tools import raises
from nose.plugins.skip import SkipTest
class TestMyClass(object):
def test_something(self):
a = 1
b = 1
assert_equal(a, b)
@raises(ValueError)
def test_raises(self):
raise ValueError("Failed")
def test_skip(self):
raise SkipTest
raise ValueError("Not fixed yet")
from some_class import *
from nose.tools import assert_equal
class TestSomeClass(object):
def setup(self):
self.someclass = SomeClass("hello")
def test_nothing(self):
assert_equal(self.someclass.echo(),
"hello hello")
pass
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment