• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/python
2
3import unittest as u
4import re, fnmatch, os
5
6rootDir = 'src/java'
7swigtypeStr = 'SWIGTYPE'
8
9class Clean(u.TestCase):
10
11    def test_existing_swigtype(self):
12        unclean = []
13
14        for fileName in os.listdir(rootDir):
15            if swigtypeStr in fileName:
16                unclean.append(fileName)
17
18        self.assertEqual( len(unclean), 0,
19                "\nmraa contains unclean Java bindings:\n" + \
20                "\n".join(unclean) + "\n\n")
21
22if __name__ == '__main__':
23    u.main()
24