aboutsummaryrefslogtreecommitdiffstats
path: root/test_cardclass.py
blob: fc17d6296ea9ab1782663ba123812c149e393191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env python3

import unittest
import cardbase

class Test_cardClass(unittest.TestCase):
    
    def setUp(self):
        self.card = cardbase.Card()

    # Tests
    def test_cardHasTitle(self):
        self.assertIsNotNone(self.card.title)
        
    def test_cardHasCost(self):
        self.assertIsNotNone(self.card.cost)
        
    def test_cardHasColour(self):
        self.assertIsNotNone(self.card.colour)
        
    def test_cardHasType(self):
        self.assertIsNotNone(self.card.type)
        
    def test_cardHasSubType(self):
        self.assertIsNotNone(self.card.subtype)
        
    def test_cardHasEdition(self):
        self.assertIsNotNone(self.card.edition)
        
    def test_cardHasScan(self):
        self.assertIsNotNone(self.card.scan)
    
    def test_cardHasArtist(self):
        self.assertIsNotNone(self.card.artist)
        
    def test_cardHasText(self):
        self.assertIsNotNone(self.card.text)
        
    def test_cardHasFlavour(self):
        self.assertIsNotNone(self.card.flavour)
    
    def test_cardHasRarity(self):
        self.assertIsNotNone(self.card.rarity)
        
    def test_cardHasNumber(self):
        self.assertIsNotNone(self.card.number)
        
    def test_cardHasPower(self):
        self.assertIsNotNone(self.card.power)
        
    def test_cardHasToughness(self):
        self.assertIsNotNone(self.card.toughness)
        
    def test_cardHasLoyalty(self):
        self.assertIsNotNone(self.card.loyalty)

def test():
    unittest.main(exit=False)
    
# The entry point
if __name__ == "__main__":
    test()