示例#1
0
def test_strings_a_3():
    print('''
        test_strings_a_3
        ================
        actual test code
        ''')
    assert multiply('a', 3) == 'aaa'
示例#2
0
 def test_numbers_5_6(self):
     print('''
         test_numbers_5_6
         ================
         actual test code
         ''')
     assert multiply(5, 6) == 30
示例#3
0
 def test_strings_b_2(self):
     print('''
         test_strings_b_2
         ================
         actual test code
         ''')
     assert multiply('b', 2) == 'bb'
示例#4
0
def test_numbers_3_4():
    print('''
        test_numbers_3_4
        ================
        actual test code
        ''')
    assert multiply(3, 4) == 12
    def test_strings_b_2(self):
        print
        'test_strings_b_2  <============================ actual test code'
        assert multiply('b', 2) == 'bb'


# run: $ py.test -s test_um_pytest_fixtures.py
示例#6
0
def test_strings_a_3():
    assert multiply('a', 3) == 'aaa'


# Run: nosetests -v test_um_nose.py

# Running:
# $ python -m pytest test_um_pytest.py
# $ py.test test_um_pytest.py
# $ py.test -v test_um_pytest.py
示例#7
0
 def test_cropspotential(self):
     # c:\Users\veper\Documents\SOFTAUS\StrawberryFields
     print(os.getcwd())
     seasonStartDay = datetime.datetime.now()
     currentHarvestingDay = datetime.datetime.now()
     currentHarvestingKg = 20
     maxDailyKg = 100
     predict_day(seasonStartDay, currentHarvestingDay, currentHarvestingKg,
                 maxDailyKg)
     self.assertEqual(multiply('a', 3), 'aaa')
示例#8
0
def test_numbers_3_4():
	print 'test_numbers_3_4 <========================== actual test code'
	assert multiply(3,4) == 12
示例#9
0
	def test_numbers_5_6(self):
		print 'test_numbers_5_6() <==================================== actual test code'
		assert multiply(5, 6) == 30
def test_numbers_3_4():
    assert multiply(3,4) == 12
示例#11
0
def test_numbers_3_4():
    assert multiply(3,4) == 12 
def test_numbers_3_4():
    print 'test_numbers_3_4  <============================ actual test code'
    assert multiply(3, 4) == 12
 def test_numbers_5_6(self):
     print 'test_numbers_5_6()  <============================ actual test code'
     assert multiply(5, 6) == 30
示例#14
0
 def test_strings_a_4(self):
     self.assertEqual(multiply('a', 4), 'aaaa')
示例#15
0
 def test_numbers_3_4(self):
     self.assertEqual( multiply(3,4), 12)
示例#16
0
 def test_numbers_5_6(self):
     """
         Check if 5x6=30
     """
     assert multiply(5, 6) == 30
示例#17
0
 def test_numbers_3_4(self):
     self.assertEqual(multiply(3, 4), 12)
示例#18
0
    def test_mallard(self):
        self.mallard.quack()
        self.mallard.fly()

        self.assertEqual(multiply(3, 4), 12)
 def test_strings_b_2(self):
     print "test_strings_b_2  <============================ actual test code"
     assert multiply("b", 2) == "bb"
示例#20
0
 def test_strings_a_3(self):
     self.assertEqual(multiply("a", 3), "aaa")
示例#21
0
  def test_disguised_turkey(self):
    self.turkey_in_disguise.quack()
    self.turkey_in_disguise.fly()

    self.assertEqual( multiply('a',3), 'aaa')
示例#22
0
  def test_mallard(self):
    self.mallard.quack()
    self.mallard.fly()

    self.assertEqual( multiply(3,4), 12)
 def test_numbers_5_6(self):
     print "test_numbers_5_6  <============================ actual test code"
     assert multiply(5, 6) == 30
示例#24
0
def test_numbers_4_5():
    assert multiply(3, 4) == 12
示例#25
0
 def test_strings_b_2(self):
     """
         Check if a string parameter gets printed 2 times
     """
     assert multiply('b', 2) == 'bb'
示例#26
0
 def test_strings_3_4_negative_case(self):
     with self.assertRaises(AssertionError):
         self.assertEqual(multiply(3, 4), 14)
示例#27
0
 def test_numbers_3_5(self):
     self.assertEqual(multiply(3, 5), 15)
示例#28
0
 def test_strings_a_5_negative_case(self):
     with self.assertRaises(AssertionError):
         self.assertEqual(multiply('a', 5), 'aaaaa')
示例#29
0
def test_multiply():
    assert (multiply(2, 3) == 6)
示例#30
0
 def test_numbers_3_4(self):
     print('\ntest_numbers_3_4 <======================= actual test code')
     assert multiply(3, 4) == 12
示例#31
0
 def test_strings_a_3(self):
     self.assertEqual( multiply('a',3), 'aaa')
示例#32
0
 def test_strings_a_3(self):
     print('\ntest_strings_a_2 <======================= actual test code')
     assert multiply('a', 3) == 'aaa'
def test_strings_a_3():
    print 'test_strings_a_3  <============================ actual test code'
    assert multiply('a', 3) == 'aaa'
示例#34
0
 def test_numbers_100(self):
     print('\ntest_numbers_3_4 <======================= actual test code')
     assert multiply(10, 10) == 100
 def test_strings_b_2(self):
     print 'test_strings_b_2()  <============================ actual test code'
     assert multiply('b', 2) == 'bb'
示例#36
0
 def test_strings_x_5(self):
     print('\ntest_strings_x_5 <======================= actual test code')
     assert multiply('x', 5) == 'xxxxx'
def test_strings_a_3():
    assert multiply('a',3) == 'aaa' 
示例#38
0
def test_numbers_3_4(hello):
    print "test_numbers_3_4\n"
    assert multiply(3, 4) == 12
示例#39
0
def test_strings_a_3():
    assert multiply('a',3) == 'aaa'
示例#40
0
def test_numbers_4_5():
    assert multiply(3, 4) == 12
示例#41
0
def test_strings_a_3():
	print 'test_strings_a_3 <========================== actual test code'
	assert multiply('a', 3) == 'aaa'
示例#42
0
def test_numbers_3_4():
    """
        Check if 3x4=12
    """
    assert multiply(3, 4) == 12
示例#43
0
	def test_strings_b_2(self):
		print 'test_strings_b_2() <==================================== actual test code'
		assert multiply('b', 2) == 'bb'
示例#44
0
def test_strings_a_3():
    """
        Check if a string parameter gets printed 3 times
    """
    assert multiply('a', 3) == 'aaa'
示例#45
0
    def test_disguised_turkey(self):
        self.turkey_in_disguise.quack()
        self.turkey_in_disguise.fly()

        self.assertEqual(multiply('a', 3), 'aaa')
def test_strings_a_3():
    print "test_strings_a_3  <============================ actual test code"
    assert multiply("a", 3) == "aaa"