Coverage for tsfpga/test/test_utils.py: 80%

5 statements  

« prev     ^ index     » next       coverage.py v6.4, created at 2022-05-28 04:01 +0000

1# -------------------------------------------------------------------------------------------------- 

2# Copyright (c) Lukas Vik. All rights reserved. 

3# 

4# This file is part of the tsfpga project. 

5# https://tsfpga.com 

6# https://gitlab.com/tsfpga/tsfpga 

7# -------------------------------------------------------------------------------------------------- 

8 

9from tsfpga.system_utils import read_file 

10 

11 

12def file_contains_string(file, string): 

13 return string in read_file(file) 

14 

15 

16def file_equals(file, string): 

17 return string == read_file(file)