@@ -0,0 +1,1277 @@
+#!/usr/bin/env python%0A# ----------------------------------------------------------------------%0A# Numenta Platform for Intelligent Computing (NuPIC)%0A# Copyright (C) 2014, Numenta, Inc.  Unless you have purchased from%0A# Numenta, Inc. a separate commercial license for this software code, the%0A# following terms and conditions apply:%0A#%0A# This program is free software: you can redistribute it and/or modify%0A# it under the terms of the GNU General Public License version 3 as%0A# published by the Free Software Foundation.%0A#%0A# This program is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.%0A# See the GNU General Public License for more details.%0A#%0A# You should have received a copy of the GNU General Public License%0A# along with this program.  If not, see http://www.gnu.org/licenses.%0A#%0A# http://numenta.org/licenses/%0A# ----------------------------------------------------------------------%0A%0Aimport os%0Aimport unittest%0A%0Afrom fluent.term import Term%0A%0A%0A%0Aclass TestTerm(unittest.TestCase):%0A%0A%0A  def test_invalid(self):%0A    term = Term().createFromString(%22thisisaninvalidterm%22)%0A    self.assertEqual(sum(term.toArray()), 0)%0A%0A%0A%0Aif __name__ == '__main__':%0A  unittest.main()

Add integration term test