'Tests that if a unit key is provided but the unit isn\'t, the unit is
automatically determined from the unit key.'

def test_unitKeyButNoUnit(self):

    class FakeSentence(object, ):
        '\n                                                A    fake    sentence    that    just    has    "foo"    and    "fooUnits"    attributes.\n                                                '
        def __init__(self):
            self.foo = 1
            self.fooUnits = 'N'
    self.adapter.currentSentence = FakeSentence()
    self.adapter._fixUnits(unitKey='fooUnits')
    self.assertNotEqual(self.adapter._sentenceData['foo'], 1)
