From d5c20e445b193fad5cb4339f00e11212fdd39c0a Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Wed, 22 Feb 2017 14:56:35 +0530 Subject: Add basic slides for workshop on pytest. --- testing/code/test_class.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 testing/code/test_class.py (limited to 'testing/code/test_class.py') diff --git a/testing/code/test_class.py b/testing/code/test_class.py new file mode 100644 index 0000000..36f67bd --- /dev/null +++ b/testing/code/test_class.py @@ -0,0 +1,11 @@ + +class TestSomething(object): + def test_something_has_hello(self): + x = 'hello1' + y = 'hello world' + assert x in y + + def test_something_else(self): + a = [1, 2, 3] + b = {1, 2, 3} + assert a == b -- cgit