Created
April 10, 2017 10:15
-
-
Save rkhozinov/8875f5676fe6954fc9501b89f59e9f87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
import testinfra | |
import unittest | |
import pprint | |
import pytest | |
class TestDevopsPortal: | |
def setup(self): | |
self.b = testinfra.get_backend("local://") | |
print ("basic setup into class") | |
def teardown(self): | |
print ("basic teardown into class") | |
def setup_class(cls): | |
print ("class setup") | |
def teardown_class(cls): | |
print ("class teardown") | |
def setup_method(self, method): | |
print ("method setup") | |
def teardown_method(self, method): | |
print ("method teardown") | |
def test_numbers_5_6(self): | |
print "test 5*6" | |
assert 5*6 == 30 | |
def test_strings_b_2(self): | |
print "test b*2" | |
assert 'b'*2 == 'bb' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment