I have a test file from ex47 in LPTHW in my project folder.The test file contains the init.py file, ex47_tests.py and ragnaroth_tests.py.It ran all three tests in ex47 tests and nosetests said"3 tests done".What I don’t know is that why is my ragnaroth test file with its one test function not being tested by nosetests even when it is in the same test folder and is importing all the same things( except for the game.py being replaced by another file I wrote).
class ragnaroths(object):
def __init__(self,move,place):
self.name=name
self.moves={}
self.place={}
def gets(self,move):
moves.append(move)
from nose.tools import *
from ragnarothss import ragnaroths
def inittest():
pit=ragnaroths("move_up","west")
assert_equal(pit.move,"move_up")
assert_equal(pit.place,"west")