File: test_utils.py

package info (click to toggle)
python-enable 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,220 kB
  • sloc: cpp: 57,417; python: 28,437; makefile: 314; sh: 43
file content (7 lines) | stat: -rw-r--r-- 173 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
from numpy import alltrue, ravel


class Utils(object):

    def assertRavelEqual(self, x, y):
        self.assert_(alltrue(ravel(x) == ravel(y)), "\n%s\n !=\n%s" % (x, y))