'Integration test for `status` functionality.'

def test_status(self):

    fullpath = os.path.join(self.repo.path, 'foo')
    with open(fullpath, 'w') as f:
        f.write('origstuff')
    porcelain.add(repo=self.repo.path, paths=[fullpath])
    porcelain.commit(repo=self.repo.path, message='test    status', author='', committer='')
    os.utime(fullpath, (0, 0))
    with open(fullpath, 'wb') as f:
        f.write('stuff')
    filename_add = 'bar'
    fullpath = os.path.join(self.repo.path, filename_add)
    with open(fullpath, 'w') as f:
        f.write('stuff')
    porcelain.add(repo=self.repo.path, paths=fullpath)
    results = porcelain.status(self.repo)
    self.assertEqual(results.staged['add'][0], filename_add.encode('ascii'))
    self.assertEqual(results.unstaged, ['foo'])
