# -*- coding: UTF-8 -*-

import pytest

# 功能函数
def multiply(a,b):
    return a * b

class TestUM:
    # =====fixtures========
    def setup(self):
        print ("setup2----->")

    def teardown(self):
        print ("teardown2-->")

    def setup_class(self):
        print ("\n")
        print ("setup_class2=========>")

    def teardown_class(self):
        print ("teardown_class2=========>")

    def setup_method(self, method):
        print ("setup_method2----->>")

    def teardown_method(self, method):
        print ("teardown_method2-->>")
    
    # =====测试用例========

    def test_numbers_5_6(self):
        print 'test_numbers_5_6'
        assert multiply(5,6) == 30 

    def test_strings_b_2(self):
        print 'test_strings_b_2'
        assert multiply('b',2) == 'bb'

if __name__ == '__main__':
    pytest.main("-s test_fixtures_class.py")