1
# canonical.ubuntuone.storage.syncdaemon.tests.test_u1fsfsm
3
# Author: Lucio Torre <lucio.torre@canonical.com>
5
# Copyright 2009 Canonical Ltd.
7
# This program is free software: you can redistribute it and/or modify it
8
# under the terms of the GNU General Public License version 3, as published
9
# by the Free Software Foundation.
11
# This program is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranties of
13
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
# PURPOSE. See the GNU General Public License for more details.
16
# You should have received a copy of the GNU General Public License along
17
# with this program. If not, see <http://www.gnu.org/licenses/>.
25
from canonical.ubuntuone.storage.syncdaemon.fsm import fsm
28
"""make a full path from here."""
29
return os.path.join(os.path.dirname(fsm.__file__), name)
31
class TestParse(unittest.TestCase):
34
def test_u1fsfsm(self):
35
'test parsing a simple machine'
36
f = fsm.StateMachine(p("../u1fsfsm.py"))
39
if __name__ == "__main__":