()
| 1950 | |
| 1951 | @staticmethod |
| 1952 | def can_write_file(): |
| 1953 | test_file = '/etc/init.d/bt_10000100.pl' |
| 1954 | write_file(test_file, 'True') |
| 1955 | if os.path.exists(test_file): |
| 1956 | if read_file(test_file) == 'True': |
| 1957 | os.remove(test_file) |
| 1958 | return True |
| 1959 | os.remove(test_file) |
| 1960 | return False |
| 1961 | |
| 1962 | def stop_syssafe(self): |
| 1963 | ret = self.can_write_file() |
no test coverage detected